home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Utilities / System 7 / ctc 1.5 / ctc 1.5.txt < prev    next >
Encoding:
Text File  |  1993-10-07  |  1.5 KB  |  38 lines  |  [TEXT/ttxt]

  1. ChangeTypeCreator.c
  2.     Change the file type and creator of any file dropped onto
  3.     this program.  Prompts for the file type and creator, and
  4.     changes all files dropped at the same time to the same type
  5.     and creator.
  6.  
  7. Written by Brian Bechtel, based on code by Juri Munkki
  8. Feel free to use the code in your programs.
  9.  
  10. Modified by Pete R. Jemian, Late-Nite(tm) Software
  11. Option was added to convert TEXT files to the
  12. chosen system of EOL (end-of-line) characters.  Note that EOLs
  13. on DOS files  are <CR><LF>  (VAX also uses this EOL format)
  14. on Mac files  are <CR>
  15. on UNIX files are <LF>
  16.  
  17. If you aren't bothered by this, that's just great.  If you
  18. are, this little hack will surely help.  Very useful for
  19. moving TEXT files between DOS, Mac, and UNIX machines
  20. by diskNet (copy file onto disk, remove disk, sneaker it
  21. to other machine, ...).
  22.  
  23. BTW: Set the application's size to that of the largest file
  24. that you expect to convert EOLs.  The EOLconvert code
  25. reads the entire file into memory at one time, then does
  26. the conversion as the file is re-written.
  27.  
  28. WARNING:
  29. If you don't know what you are doing, things *could* get
  30. pretty fouled up.  They might not.  UNDO is not supported.
  31. See the source code to determine *exactly* what is done.
  32.  
  33. The problem that *could* occur is that you mistakenly select
  34. a non-TEXT file along with other TEXT files and convert them
  35. all to type TEXT *and* convert the EOL characters to the
  36. selection of your choice.  That's the danger.  Don't do it.
  37. You are unprotected against goofball errors like this.
  38.